#!/usr/bin/python
# -*- encoding: utf-8 -*-
'''
@File    :   2.py
@Time    :   2020/03/15 21:20:56
@Author  :   Malygos_l 
@Version :   1.0
@Contact :   751756061@qq.com
@WebSite :   www.gitee.com/malygos_l
'''
# Start typing your code from here
# 编写一个函数,接收n个数字，求这些参数数字的和;

def add(*a):
    sum = 0
    for x in a:
        sum = sum + x
    return sum
print(add(1,2))